package com.springboot.chapter3;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
//@ComponentScan(value = "com.springboot.chapter3.*",
//        excludeFilters = {@ComponentScan.Filter(classes = {UserService.class})}) // 也可以进行排除
@PropertySource(value = "classpath:jdbc.properties", ignoreResourceNotFound = true)
public class Chapter3Application {

    public static void main(String[] args) {
        SpringApplication.run(Chapter3Application.class, args);
    }

}
